package io.github.jianjianghui.groot.core.annotation;

import io.github.jianjianghui.groot.core.Groot;
import io.github.jianjianghui.groot.core.GrootRequest;

/**
 * 幂等存储单元
 *
 * @author <a href="https://www.github.com/jianjianghui">Jianghui Jian<a/>
 * @date 2021/8/27 - 14:29
 */
public interface GrootMemoryUnit {

    void add(Groot groot);

    GrootRequest get(String ip, String requestId);

    void delete(String ip, String requestId);

}
